package com.sc.nft.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.sc.nft.entity.UserEcologyPointsDetail;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.sc.nft.entity.vo.ecology.AdminEcologyPointsUserPageDetailsVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;

/**
 * 生态-积分收入支出明细(sc_user_ecology_points_detail)数据Mapper
 *
 * @author Sun
 * @since 2023-10-13 17:21:48
 * @description 由 Mybatisplus Code Generator 创建
*/
@Mapper
public interface UserEcologyPointsDetailMapper extends BaseMapper<UserEcologyPointsDetail> {

    /**
     * 获取用户燃料记录详情
     * @param page
     * @param type
     * @param startTime
     * @param endTime
     * @return
     */
    Page<AdminEcologyPointsUserPageDetailsVO> getUserDetailsPage(Page page, @Param("userId") Long userId,@Param("type") Integer type, @Param("startTime") Date startTime,  @Param("endTime")Date endTime);
}
